package com.exception.demo01;

/**
 * @author wuJiaWei
 * @version 1.0
 * @date 2024/8/14
 * @time 14:35:53
 */
public class Test2 {
    public static void main(String[] args) {
        int a = 1;
        int b = 0;

        try {
            System.out.println(a/b);
        } catch (Exception e) {
            e.printStackTrace();//打印异常信息
        } finally {
            System.out.println("finally");
        }
    }
}
